package main

import "fmt"

func main() {
	ints := make(chan int, 3)
	ints <- 1
	ints <- 2
	ints <- 3
	close(ints)
	for elem := range ints {
		fmt.Println(elem)
	}
}
